package com.ylr.basic.framework.feign.fallback;

import com.ylr.basic.framework.feign.external.IpResolveClient;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-05-03 16:29:57
 * className: IpResolveClientFallback ip地址映射客户端异常回调类
 * version: 1.0
 * description:
 */
public class IpResolveClientFallback implements IpResolveClient {

    private static final Logger log = LoggerFactory.getLogger(IpResolveClientFallback.class);

    @Override
    public String getAddress(String ip, Boolean json) {
        log.info("feign调用远程服务 -> 获取ip映射真实地址失败。ip={}", ip);
        return StringUtils.EMPTY;
    }

}
